#include <cstdio>
#include <cstring>
#include <iostream>
#include <algorithm>
using namespace std;
int main()
{
	char s[220];
	while(scanf("%s",s)!=EOF)
	{
		int flag = 0;
		int sign = 0;
		int len = strlen(s);
		for(int i = 0;i<len;)
		{
			if(s[i]=='W'&&s[i+1]=='U'&&s[i+2]=='B')
			{
				i = i+3;
				if(flag)
				{
					sign = 1;
					flag = 0;
				} 
				//if(cnt>1) printf(" ");
			}
			else 
			{
				if(sign)
				{
					printf(" ");
					sign = 0;
				}
				flag = 1;
				printf("%c",s[i]);
				i++;
			}
		}
		printf("\n");
	}
}
